package com.alennus.blog.rabbitMq.spring_rabbit.topic;

import com.alennus.blog.rabbitMq.spring_rabbit.config.RabbitConfig;
import com.alennus.blog.rabbitMq.spring_rabbit.domain.User;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by pactera on 2018/9/25.
 */
@Component
public class CustomerTopicReceiver {

    @RabbitListener(queues = RabbitConfig.QUEUE_TOPIC_MESSAGE_NAME)
    public void process(String msg) {
        System.out.println("QUEUE_TOPIC_MESSAGE_NAME  : " +msg);
    }

    @RabbitListener(queues = RabbitConfig.QUEUE_TOPIC_MESSAGES_NAME)
    public void f(String msg) {
        System.out.println("QUEUE_TOPIC_MESSAGES_NAME  : " +msg);
    }
}
